<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateNamesTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('names', function (Blueprint $table) {
            $table->increments('id');
            $table->char('name', 6)->comment('姓名');
            $table->char('mobile', 11)->comment('电话号码');
            $table->boolean('gender')->comment('性别');
            $table->char('address', 60)->comment('家庭地址');
            $table->char('email', 30)->comment('邮箱');
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('names');
    }
}
